package com.sise.stuteaintersys.locallibs.enums;

import lombok.Getter;

/**
 * @author
 */

@Getter
public enum AdminEnum implements CodeEnum  {
    /**
     * 保存管理员操作需要使用的code和message
     */
    SUCCESS(20000, "课程分类添加成功"),
    ERROR(20001, "课程分类添加失败"),
    UNDETERRED(20002, "课程分类更改失败"),
    DEFERRER(20003, "课程分类删除异常"),
    STUDENT(20004, "学生添加失败"),
    DELSTUDENT(20014, "学生删除失败"),
    TEACHER(20005, "教师添加失败"),
    DELTEACHER(20015, "教师删除失败"),
    ADMIN(20006, "管理员添加失败"),
    LOGINNAMEERROR(20007, "登录名已存在"),
    EXCELLUPLOADERROR(30001, "Excel文件导入失败");

    private Integer code;
    private String message;

    AdminEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
